﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Lamex.Library;
using Lamex.Interface;
using Lamex.Library.CommonClass;
using Lamex.mMES.UI;
using Lamex.mTools.UI;

namespace Lamex.mSJ.UI
{
    public partial class frmSJ_Main : frmModuleBase
    {
        public frmSJ_Main()
        {
            InitializeComponent();
            menuStrip1.Text = ModuleNames.mSJ; //与AssemblyModuleEntry.ModuleName定义相同
        }
        public override MenuStrip GetModuleMenu()
        {
            return this.menuStrip1;
        }

        private void menuSJ_PN_AL_PartDetail_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("NC_PN_AL_Detail_Part", 0, false, true), sender as ToolStripMenuItem);
        }

        private void menuSJ_Accessory_Material_List_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("TOOL_Image_List", 0, true, false), sender as ToolStripMenuItem);
        }

        private void menuSJ_Image_Brower_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmTL_Image_Brower), sender as ToolStripMenuItem);
        }

        private void menuSJ_Search_Part_Image_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmTL_Image_Brower), sender as ToolStripMenuItem);
        }

        private void menuSJ_Search_Accessory_Image_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmTL_Image_Accessories), sender as ToolStripMenuItem);
        }

        private void menuSJ_Search_Product_Image_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmTL_Image_Accessories), sender as ToolStripMenuItem);
        }

    }
}